m = int(input())
n = float(input())
python = 3
math = 4
english = 4
physical = 2
military_theory = 2
philosophy = 2
#==================
# 补充你的代码
a = 3+4+4+2+2+2
student = m * a
liv = 5 * n
X = 0.6 * (student + liv) 
print(f'本学期你能够贷款{X:.2f}元')